package model;

public class Reason implements Comparable<Reason> {

	private int Reason_Id;
	private String Reason_Reason;

	public Reason(int id, String reason) {
		Reason_Id = id;
		Reason_Reason = reason;
	}

	public int getReason_Id() {
		return Reason_Id;
	}

	public void setReason_Id(int reason_Id) {
		Reason_Id = reason_Id;
	}

	public String getReason_Reason() {
		return Reason_Reason;
	}

	public void setReason_Reason(String reason_Reason) {
		Reason_Reason = reason_Reason;
	}

	// CompareTo for Group on Reason_reason
	public int compareTo(Reason r) {

		return getReason_Reason().toUpperCase().compareTo(
				r.getReason_Reason().toUpperCase());
	}

	public String toString() {
		return Reason_Id + ": " + Reason_Reason;
	}

}
